import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

import store from "./store"
//* as XX 引入模块中所有的具名导出组装到XX中
//引入所有的图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//引入全局初始化样式
import "normalize.css"
import 'element-plus/es/components/message/style/css'
//引入自己编写的全局样式
import "@/style/base.css"
const app = createApp(App)
app.use(store)
app.use(router)
//将所有的图标都注册成全局组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.mount('#app')
